//
//  DCCarDetailMsgView.m
//  JiuyaoMotorcade
//
//  Created by 大橙子 on 2018/12/1.
//  Copyright © 2018 Tomous. All rights reserved.
//

#import "DCCarDetailMsgView.h"

@implementation DCCarDetailMsgView
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, (self.height - 30)/2, 50, 30)];
        self.imageView = imageView;
        [self addSubview:imageView];
        
        UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(imageView.right+10, 0, self.width - imageView.width-10, self.height)];
        textField.textAlignment = NSTextAlignmentRight;
        self.textField = textField;
        [self addSubview:textField];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
